package tickets.tickets;

import tickets.tickets.Ticket;
import tickets.tickets.PassageState;

/**
 * Base type of ticket: student, schoolkid, usual etc.
 * 
 * @author Hlib_Babii
 */
public abstract class BaseTicket extends Ticket {

    protected long id;

    BaseTicket(long id) {
        this.id = id;
    }

    public long getId() {
        return id;
    }
    
    @Override
    PassageState check() {
        return PassageState.ALLOWED;
    }

    @Override
    void use() {}
    
}
